<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function fun(){
				//string类型
				var a="大";
				var b="哥";
				var c=a+b;
				console.log(c);   //输出大哥
				
				//number类型：执行加法运算
				var d=11;
				var e=22;
				var f=d+e;
				console.log(f);  //输出33
				
				//number类型与string类型：会把number类型隐式转换为string类型
				var g=33;
				var h="44";
				var i=g+h;
				console.log(i);  //输出3344
			}
		</script>
	</head>
	<body>
		<input type="button"value="点我" onclick="fun()"/>
	</body>
</html>
